<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:30:"./themes/admin/dp/fw_list.html";i:1749095486;s:51:"/lysoo/syzth.lysoo.com/syzth/themes/admin/base.html";i:1741049647;}*/ ?>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title><?php echo $setup['title']; ?></title>
    <meta content="<?php echo $setup['keywords']; ?>" name="keywords" />
    <meta content="<?php echo $setup['description']; ?>" name="description" />
    <?php if($setup['ico'] != null): ?><link rel="shortcut icon" type="image/x-icon"  href="/public/uploads/<?php echo $setup['ico']; ?>"/><?php endif; ?>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="/public/layuiadmin/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="/public/layuiadmin/style/admin.css" media="all">
    <!--CSS引用-->
    
    <!--页面CSS-->
    <!--[if lt IE 9]>
    <script src="/public/static/js/html5shiv.min.js"></script>
    <script src="/public/static/js/respond.min.js"></script>
    <![endif]-->
</head>
<body>

<div class="layui-fluid">
    <div class="layui-card">
        <div class="layui-card-header">服务记录管理</div>
        <div class="layui-card-body">
            <form class="layui-form" action="">
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <input type="text" name="name" placeholder="请输入联系人姓名" value="<?php echo $name; ?>" class="layui-input">
                    </div>
                    <div class="layui-inline">
                        <button class="layui-btn" lay-submit>搜索</button>
                    </div>
                </div>

                <table class="layui-table" lay-size="sm">
                    <thead>
                        <tr>
                            <th>联系人</th>
                            <th>指派时间</th>
                            <th>服务开始</th>
                            <th>服务结束</th>
                            <th>服务时长（小时）</th>
                            <th>评分</th>
                            <th>备注</th>
                            <th>状态</th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php if(is_array($list) || $list instanceof \think\Collection || $list instanceof \think\Paginator): if( count($list)==0 ) : echo "" ;else: foreach($list as $key=>$vo): ?>
                        <tr>
                            <td><?php echo $vo['name']; ?></td>
                            <td><?php echo $vo['assign_time']; ?></td>
                            <td><?php echo $vo['server_start_time']; ?></td>
                            <td><?php echo $vo['server_end_time']; ?></td>
                            <td><?php echo $vo['item_time']; ?></td>
                            <td><?php if($vo['server_star'] > 0): ?><?php echo $vo['server_star']; ?>★<?php else: ?><span style="color:#ccc;">暂无</span><?php endif; ?></td>
                            <td><?php echo (isset($vo['server_mark']) && ($vo['server_mark'] !== '')?$vo['server_mark']:'--'); ?></td>
                            <td>
                                <?php if($vo['is_cancel'] == 1): ?>
                                    <span style="color:red;">已取消</span>
                                <?php else: ?>
                                    <span style="color:green;">已服务</span>
                                <?php endif; ?>
                            </td>
                        </tr>
                        <?php endforeach; endif; else: echo "" ;endif; ?>
                    </tbody>
                </table>
            </form>
            <div class="pagination-wrapper"><?php echo $feedbacks->render(); ?></div>
        </div>
    </div>
</div>

<!--页面-->

<!--JS引用-->
<script src="/public/static/js/jquery.min.js"></script>
<script src="/public/layuiadmin/layui/layui.js"></script>
<script>
    layui.config({
        base: '/public/layuiadmin/' //静态资源所在路径
    }).extend({
        index: "lib/index" //主入口模块
    }).use('index');
</script>

<!--页面JS脚本-->
</body>
</html>

